<%@ page language="java" contentType="text/html; charset=ISO-8859-1" pageEncoding="ISO-8859-1"%>
<%@ page import="be.ac.ua.ecampus.uacmat.entity.*" %>
<!DOCTYPE html>
<html>
<head>
	<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
	<title>Show</title>
	<link rel="stylesheet" type="text/css" href="style.css"/>
</head>

<body>
<header>
	<h1>Program</h1>
</header>

<% final Program program = (Program) request.getAttribute("program"); %>

<div id="body-wrapper">
	<h2><%= program.getDescription() %></h2>
	Training: <%= program.getTraining().getDescription() %> <br/>
	
	Courses:
	<ul>
	<% for (final Course result : program.getCourses()) { %>
		<li>
	        <a href="/uacmat/show?type=<%= result.getType() %>&id=<%= result.getId() %>"><%= result.getDescription() %></a>	        
		</li>
	<% } %>
	</ul>
</div>
</body>
</html>